package com.zerui.manager.app.device.executer;

import com.alibaba.cola.catchlog.CatchAndLog;
import com.zerui.cola.dto.SingleResponse;
import com.zerui.manager.device.domainservice.DeviceRepository;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author wh
 * @create_time 2023-09-14 16:49
 */
@Component
@CatchAndLog
public class DeviceDelCmdExe {

    @Resource
    private DeviceRepository deviceRepository;

    public void execute(Long deviceId) {
        deviceRepository.deleteById(deviceId);
    }
}
